Accruent Meridian Enterprise 2021 VBScript API Reference

Confirmation Method

Shows a custom confirmation dialog. This method should not be confused with the Confirmation Property.

Syntax

Confirmation(ID As String)
Parameters
Name Description

ID

Identifier of the content to show in the dialog.

Return Value

Object with two properties, the user's input in Value and the user's comment (if any) in Comment.

Remarks

Confirmation dialogs are not supported if the ActiveX compatibility mode option is enabled as described in Personal Preferences. The available constants can be found in the Constants branch of the Object Browser in the Meridian Enterprise Script Editor.

Example

Copy
Sub DocCWFEvent_InitializeExecuteTransition(Batch, Transition, Person, Manager, Comment)
    Batch.ConfirmationTitle = "Set Due Date"
    Batch.ShowInfo "Proceeding will make all of the selected documents" + vbCrLf + _
    "due on the date you enter." + vbCrLf + CStr(Batch.BatchSize) + " document(s)", _
    "Enter Due Date"
    Batch.AskConfirmation "C1", "Do you want to continue the operation?", AS_CDV_YES , _
    AS_COMMENT_MANDATORY_YES 
    Batch.AskInput "I1", "Due date:", AS_vbDate, AS_COMMENT_MANDATORY_NO
End Sub

Sub DocCWFEvent_BeforeExecuteTransition(Batch, Transition, Person, Manager, Comment)
    Set res = Batch.Confirmation("C1")
    If res Is Nothing Then
     Batch.PrintDetails "Prompt 1 result is null"
    Else
     Batch.PrintDetails "Prompt 1: " + CStr(res.Value) + " Comment: " + res.Comment
    End If
Set res2 = Batch.Confirmation("I1")
    If res2 Is Nothing Then
     Batch.PrintDetails "Input 1 result is null"
    Else
     Batch.PrintDetails "Input 1: " + CStr(res2.Value) + " Comment: " + res2.Comment
    End If  
End Sub